package com.ruoyi.project.thirdservice.service.aliyun.logistics;

import com.alibaba.cloudapi.sdk.enums.Scheme;
import com.alibaba.cloudapi.sdk.model.HttpClientBuilderParams;

/**
 * @author yan
 */
public class AliyunLogisticsHttpApiClient extends AliyunAbstractLogisticsApiClient {

    private static AliyunLogisticsHttpApiClient instance = new AliyunLogisticsHttpApiClient();

    public static AliyunLogisticsHttpApiClient getInstance() {
        return instance;
    }

    @Override
    public void init(HttpClientBuilderParams httpClientBuilderParams) {
        httpClientBuilderParams.setScheme(Scheme.HTTP);
        httpClientBuilderParams.setHost(HOST);
        super.init(httpClientBuilderParams);
    }
}